<?php

namespace app\common\validate;

use think\Validate;

class UploadVideo extends Validate
{
    protected $rule = [
        'video' => 'require|fileExt:mp4|fileMime:mp4/mp4|fileSize:31457280'
    ];

    protected $message = [
        'video.require'=>'请上传mpeg或者mp4格式的视频',
        'video.fileExt'=>'请上传后缀为[mpeg,mp4]的视频',
        'video.fileMime'=>'视频类型格式错误',
        'video.fileSize'=>'请上传小于30M的视频'
    ];
}
